/* ===== 现代婚礼邀请函样式系统 ===== */

/* 全局重置和基础设置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* 主色调 */
    --primary-color: #6366f1;
    --primary-light: #818cf8;
    --primary-dark: #4f46e5;
    
    /* 辅助色 */
    --secondary-color: #ec4899;
    --accent-color: #f59e0b;
    --success-color: #10b981;
    
    /* 中性色 */
    --white: #ffffff;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    
    /* 渐变色 */
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-secondary: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-accent: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    
    /* 字体 */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-display: 'Playfair Display', serif;
    
    /* 间距 */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-2xl: 3rem;
    --spacing-3xl: 4rem;
    
    /* 圆角 */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    
    /* 阴影 */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    
    /* 过渡 */
    --transition-fast: 0.15s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* 基础样式 */
html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-primary);
    line-height: 1.6;
    color: var(--gray-800);
    background: var(--gradient-primary);
    background-attachment: fixed;
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* 页面加载器 */
.page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity var(--transition-slow), visibility var(--transition-slow);
}

.page-loader.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader-content {
    text-align: center;
    color: var(--white);
}

.loader-ring {
    width: 60px;
    height: 60px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top: 3px solid var(--white);
    border-radius: 50%;
    margin: 0 auto var(--spacing-md);
    animation: spin 1s linear infinite;
}

.loader-text {
    font-size: 0.875rem;
    font-weight: 500;
    opacity: 0.9;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 主容器 */
.app-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* 导航栏 */
/* 主内容区域 */
.main-content {
    flex: 1;
}

/* 英雄区域 */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    background-image: url('https://shift-m.oss-cn-shanghai.aliyuncs.com/wedding/hsz/hsz-2.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -2;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.1);
    z-index: -1;
}

.hero-content {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translate(-50%, 0);
    width: 80%;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
    text-align: center;
    color: var(--white);
}

.hero-card {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-2xl);
    padding: var(--spacing-3xl);
    box-shadow: var(--shadow-xl);
    animation: fadeInUp 1s ease-out;
}

.invitation-header {
    margin-bottom: var(--spacing-2xl);
}

.invitation-title {
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 600;
    margin-bottom: var(--spacing-md);
    background: linear-gradient(135deg, #ffffff 0%, #f0f0f0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.title-decoration {
    width: 80px;
    height: 2px;
    background: var(--white);
    margin: 0 auto;
    border-radius: 1px;
    opacity: 0.8;
}

.couple-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-2xl);
    margin-bottom: var(--spacing-2xl);
}

.name-card {
    text-align: center;
}

.name-label {
    display: block;
    font-size: 1rem;
    font-weight: 500;
    opacity: 0.8;
    margin-bottom: var(--spacing-sm);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.name-text {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 500;
    margin: 0;
}

.heart-divider {
    display: flex;
    align-items: center;
    justify-content: center;
}

.heart-icon {
    width: 40px;
    height: 40px;
    color: var(--secondary-color);
    animation: heartbeat 2s ease-in-out infinite;
}

@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.invitation-message {
    font-size: 1.125rem;
    font-weight: 400;
    opacity: 0.9;
    line-height: 1.8;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 通用区域样式 */
.section-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--spacing-3xl) var(--spacing-lg);
}

.section-header {
    text-align: center;
    margin-bottom: var(--spacing-3xl);
}

.section-title {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--gray-800);
    margin-bottom: var(--spacing-sm);
}

.section-subtitle {
    font-size: 1rem;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 500;
}

/* 详情区域 */
.details-section {
    background: var(--white);
    position: relative;
}

.details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-xl);
}

.detail-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: var(--spacing-xl);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--gray-100);
    transition: all var(--transition-normal);
    text-align: center;
}

.detail-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.detail-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto var(--spacing-lg);
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.detail-icon svg {
    width: 30px;
    height: 30px;
    color: var(--white);
}

.detail-content h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--gray-800);
    margin-bottom: var(--spacing-sm);
}

.detail-value {
    font-size: 1.125rem;
    font-weight: 500;
    color: var(--primary-color);
    margin-bottom: var(--spacing-xs);
}

.detail-extra {
    font-size: 0.875rem;
    color: var(--gray-500);
}

/* 故事时间线区域 */
.gallery-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    position: relative;
}

/* 故事时间线容器 */
.story-timeline {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
}

/* 时间线主线 */
.story-timeline::before {
    display: none;
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(to bottom, var(--primary-color), var(--accent-color));
    transform: translateX(-50%);
    border-radius: 2px;
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.3);
}

/* 故事章节 */
.story-chapter {
    position: relative;
    margin-bottom: 80px;
    opacity: 1;
    transform: translateY(0);
    /* 移除固定动画，避免关闭全屏时重复触发 */
}

/* 只在页面初始加载时应用动画 */
/* .story-chapter.initial-load {
    opacity: 0;
    transform: translateY(50px);
    animation: fadeInUp 0.8s ease forwards;
} */

.story-chapter.initial-load:nth-child(1) { animation-delay: 0.2s; }
.story-chapter.initial-load:nth-child(2) { animation-delay: 0.4s; }
.story-chapter.initial-load:nth-child(3) { animation-delay: 0.6s; }

/* 章节头部 */
.chapter-header {
    display: flex;
    align-items: center;
    margin-bottom: var(--spacing-xl);
    position: relative;
}

/* 章节编号 */
.chapter-number {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #ff9a9e, #fecfef, #fecfef, #fad0c4);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin-right: var(--spacing-xl);
    box-shadow: var(--shadow-lg);
    position: relative;
    z-index: 2;
}

/* 章节信息 */
.chapter-info {
    flex: 1;
}

.chapter-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--gray-800);
    margin-bottom: var(--spacing-xs);
    font-family: var(--font-display);
}

.chapter-subtitle {
    font-size: 1rem;
    color: var(--accent-color);
    font-style: italic;
    margin-bottom: var(--spacing-xs);
}

.chapter-date {
    font-size: 0.875rem;
    color: var(--gray-600);
    background: rgba(99, 102, 241, 0.1);
    padding: var(--spacing-xs) var(--spacing-md);
    border-radius: var(--radius-lg);
    display: inline-block;
}

/* 章节内容 */
.chapter-content {
    background: var(--white);
    border-radius: var(--radius-2xl);
    padding: 5px;
    box-shadow: var(--shadow-lg);
    position: relative;
}

.chapter-content::before {
    content: '';
    position: absolute;
    left: -15px;
    top: 30px;
    width: 0;
    height: 0;
    border-top: 15px solid transparent;
    border-bottom: 15px solid transparent;
    border-right: 15px solid var(--white);
}

/* 章节描述 */
.chapter-description {
    margin-bottom: var(--spacing-xl);
}

.chapter-description p {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--gray-700);
    margin: 0;
    padding: 10px;
}

/* 歌词容器 - 纯文本显示 */
.lyrics-container {
    min-height: 60px;
    padding: 1rem;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    border-radius: 12px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    text-align: center;
    line-height: 1.8;
    font-size: 1.1rem;
    color: var(--text-color);
}

/* 累积显示的歌词片段 */
.accumulated-lyrics {
    display: inline;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.6s ease-out;
}

/* 底部歌词滚动区域 */
.bottom-lyrics-area {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 80px;
    background: linear-gradient(180deg, 
        rgba(0, 0, 0, 0.8) 0%, 
        rgba(0, 0, 0, 0.9) 100%);
    backdrop-filter: blur(15px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 1000;
    display: none; /* 初始状态隐藏 */
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease-in-out;
}

/* 底部歌词内容容器 */
.bottom-lyrics-content {
    width: 100%;
    max-width: 800px;
    padding: 0 2rem;
    text-align: center;
}

/* 当前滚动显示的歌词 */
.current-lyrics {
    font-size: 1.3rem;
    line-height: 1.6;
    color: #ffffff;
    font-weight: 500;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
    animation: lyricsSlideIn 0.8s ease-out;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 歌词滑入动画 */
@keyframes lyricsSlideIn {
    0% {
        opacity: 0;
        transform: translateY(30px) scale(0.9);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* 章节相册 */
.chapter-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-lg);
}

/* 无图片提示文本样式 */
.no-images-text {
    text-align: center;
    color: var(--gray-500);
    font-style: italic;
    font-size: 1.1rem;
    padding: var(--spacing-xl) 0;
    margin: 0;
    opacity: 0.8;
}

.chapter-gallery-item {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-normal);
    cursor: pointer;
    text-align: center;
}

.chapter-gallery-item:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: var(--shadow-xl);
}

.chapter-gallery-item img {
    width: 100%;
    height: auto;
    object-fit: cover;
    transition: transform var(--transition-normal);
}

.chapter-gallery-item:hover img {
    transform: scale(1.1);
}

/* 故事导航 */
.story-nav {
    display: flex;
    justify-content: center;
    gap: var(--spacing-lg);
    margin-top: 60px;
    flex-wrap: wrap;
}

.story-nav-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: var(--spacing-lg);
    border: 2px solid var(--primary-color);
    background: var(--white);
    color: var(--primary-color);
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all var(--transition-normal);
    min-width: 100px;
}

.story-nav-btn:hover,
.story-nav-btn.active {
    background: var(--primary-color);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.nav-number {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: var(--spacing-xs);
}

.nav-title {
    font-size: 0.875rem;
    font-weight: 500;
}

/* 原有相册样式保留 */
.gallery-nav {
    display: flex;
    justify-content: center;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-2xl);
    flex-wrap: wrap;
}

.gallery-nav-btn {
    background: var(--white);
    border: 1px solid var(--gray-200);
    color: var(--gray-600);
    padding: var(--spacing-sm) var(--spacing-lg);
    border-radius: var(--radius-lg);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.gallery-nav-btn:hover,
.gallery-nav-btn.active {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--spacing-lg);
}

.gallery-item {
    background: var(--white);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-normal);
    cursor: pointer;
}

.gallery-item:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.gallery-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform var(--transition-normal);
}

.gallery-item:hover .gallery-image {
    transform: scale(1.05);
}



/* 页脚 */
.app-footer {
    background: var(--gray-800);
    color: var(--white);
    text-align: center;
    padding: var(--spacing-2xl) var(--spacing-lg);
}

.footer-text {
    font-size: 1.125rem;
    margin-bottom: var(--spacing-lg);
    opacity: 0.9;
}

.footer-date {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--primary-light);
}

/* 倒计时样式 */
.countdown-container {
    margin-top: var(--spacing-md);
}

.countdown-title {
    font-size: 0.875rem;
    opacity: 0.8;
    margin-bottom: var(--spacing-md);
}

.countdown-display {
    display: flex;
    justify-content: center;
    gap: var(--spacing-lg);
    flex-wrap: wrap;
}

.countdown-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 60px;
}

.countdown-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent-color);
    line-height: 1;
    margin-bottom: var(--spacing-xs);
}

.countdown-label {
    font-size: 0.75rem;
    opacity: 0.7;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* 图片模态框 */
.image-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
}

.image-modal.show {
    display: flex;
}

.modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
}

.modal-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    background: var(--white);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    animation: modalZoom 0.3s ease-out;
}

@keyframes modalZoom {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.modal-close {
    position: absolute;
    top: var(--spacing-md);
    right: var(--spacing-md);
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.5);
    color: var(--white);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all var(--transition-fast);
}

.modal-close:hover {
    background: rgba(0, 0, 0, 0.7);
    transform: scale(1.1);
}

.modal-close svg {
    width: 20px;
    height: 20px;
}

.modal-image-container {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-image {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
}

.modal-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    width: 100%;
    padding: 0 var(--spacing-md);
    pointer-events: none;
}

.modal-nav-btn {
    width: 50px;
    height: 50px;
    background: rgba(0, 0, 0, 0.5);
    color: var(--white);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
    pointer-events: all;
}

.modal-nav-btn:hover {
    background: rgba(0, 0, 0, 0.7);
    transform: scale(1.1);
}

.modal-nav-btn svg {
    width: 24px;
    height: 24px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .nav-content {
        padding: 0 var(--spacing-md);
    }
    
    .nav-menu {
        gap: var(--spacing-sm);
    }
    
    .nav-item {
        font-size: 0.75rem;
        padding: var(--spacing-xs) var(--spacing-sm);
    }
    
    .hero-card {
        padding: var(--spacing-2xl);
    }
    
    .invitation-title {
        font-size: 2rem;
    }
    
    .name-text {
        font-size: 1.8rem;
    }
    
    .couple-info {
        flex-direction: column;
        gap: var(--spacing-lg);
    }
    
    .section-container {
        padding: var(--spacing-2xl) var(--spacing-md);
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .details-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }
    
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: var(--spacing-md);
    }
    
    .wishes-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-2xl);
    }
    
    .modal-content {
        max-width: 95vw;
        max-height: 85vh;
    }
    
    .modal-nav-btn {
        width: 40px;
        height: 40px;
    }
    
    .modal-nav-btn svg {
        width: 20px;
        height: 20px;
    }
    
    .lyrics-container {
        min-height: 50px;
        padding: 0.8rem;
        font-size: 1rem;
    }
    
    .bottom-lyrics-area {
        height: 70px;
    }
    
    .bottom-lyrics-content {
        padding: 0 1rem;
    }
    
    .current-lyrics {
        font-size: 1.1rem;
        line-height: 1.4;
    }
}

@media (max-width: 480px) {
    .nav-logo {
        font-size: 1.25rem;
    }
    
    .hero-card {
        padding: var(--spacing-xl);
    }
    
    .invitation-title {
        font-size: 1.75rem;
    }
    
    .name-text {
        font-size: 1.5rem;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .gallery-nav {
        gap: var(--spacing-sm);
    }
    
    .gallery-nav-btn {
        padding: var(--spacing-xs) var(--spacing-md);
        font-size: 0.75rem;
    }
    
    /* 倒计时移动端适配 */
    .countdown-display {
        gap: var(--spacing-md);
    }
    
    .countdown-number {
        font-size: 1.5rem;
    }
    
    .countdown-item {
        min-width: 50px;
    }
}

/* 滚动条样式 */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--gray-100);
}

::-webkit-scrollbar-thumb {
    background: var(--gray-300);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gray-400);
}

/* 选择文本样式 */
::selection {
    background: rgba(99, 102, 241, 0.2);
    color: var(--gray-800);
}

/* 焦点样式 */
:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* 打印样式 */
@media print {
    .gallery-nav,
    .wish-form,
    .modal-nav {
        display: none;
    }
    
    .main-content {
        padding-top: 0;
    }
    
    .hero-section {
        min-height: auto;
        padding: var(--spacing-2xl) 0;
    }
}

/* 全屏图片播放器样式 */
.fullscreen-gallery {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('https://shift-m.oss-cn-shanghai.aliyuncs.com/wedding/wedding-bg.png') center/cover no-repeat;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s ease;
    backdrop-filter: blur(10px);
}

.fullscreen-gallery.active {
    opacity: 1;
    visibility: visible;
}

.fullscreen-gallery-content {
    position: relative;
    width: 90%;
    height: 90%;
    max-width: 1200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Slick轮播图容器样式 */
.fullscreen-slider-container {
    position: relative;
    width: 100vw; /* 使用视口宽度 */
    height: 100vh; /* 使用视口高度 */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.fullscreen-slider {
    width: 100%;
    height: 100%;
}

.fullscreen-slide-image {
    width: 100vw; /* 宽度撑满全屏 */
    height: auto; /* 高度自适应，保持图片原始比例 */
    max-height: 100vh; /* 最大高度不超过视窗高度 */
    object-fit: contain; /* 保持图片完整显示，不裁剪 */
    border-radius: 0; /* 移除圆角以实现完全全屏 */
    box-shadow: none; /* 移除阴影以实现完全全屏 */
    display: block;
    margin: 0 auto; /* 水平居中 */
    position: relative;
    top: 50%; /* 垂直居中定位 */
    transform: translateY(-50%); /* 垂直居中偏移 */
}

/* Slick轮播图自定义样式 */
.fullscreen-slider .slick-slide {
    outline: none; /* 移除焦点轮廓 */
}

.fullscreen-slider .slick-slide > div {
    height: 100vh;
    display: flex !important;
    align-items: center;
    justify-content: center;
    overflow: hidden; /* 防止图片溢出 */
}

/* 隐藏slick默认的导航点和箭头 */
.fullscreen-slider .slick-dots,
.fullscreen-slider .slick-arrow {
    display: none !important;
}

/* 确保slick轮播图容器占满全屏 */
.fullscreen-slider .slick-list,
.fullscreen-slider .slick-track {
    height: 100%;
}

.fullscreen-slider .slick-slide {
    height: 100vh;
}

.fullscreen-description-top {
    position: absolute;
    top: 0;
    z-index: 10000;
}

.fullscreen-image {
    width: 100vw; /* 横向全屏宽度 */
    height: 100vh; /* 纵向全屏高度 */
    object-fit: cover; /* 覆盖整个容器，保持比例 */
    border-radius: 0; /* 移除圆角以实现完全全屏 */
    transition: all 0.5s ease;
    box-shadow: none; /* 移除阴影以实现完全全屏 */
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* 翻页动画效果 */
@keyframes slideInFromRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutToLeft {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(-100%);
        opacity: 0;
    }
}

@keyframes slideInFromLeft {
    from {
        transform: translateX(-100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutToRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

/* 翻页动画类 */
.fullscreen-image.slide-in-right {
    animation: slideInFromRight 1.6s ease-out forwards;
}

.fullscreen-image.slide-out-left {
    animation: slideOutToLeft 1.6s ease-out forwards;
}

.fullscreen-image.slide-in-left {
    animation: slideInFromLeft 1.6s ease-out forwards;
}

.fullscreen-image.slide-out-right {
    animation: slideOutToRight 1.6s ease-out forwards;
}

.fullscreen-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 0 0 12px 12px;
    overflow: hidden;
}

.fullscreen-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    width: 0%;
    transition: width linear;
    border-radius: 0 0 12px 12px;
}

/* 顶部描述区域 - 绝对定位不挤占图片空间 */
.fullscreen-description {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    max-width: 800px;
    margin: 0 auto;
    text-align: left;
    padding: var(--spacing-md) var(--spacing-lg);
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    min-height: auto;
    max-height: 200px;
    overflow-y: auto;
    z-index: 3;
}

/* 图片计数器 */
.fullscreen-counter {
    position: absolute;
    top: var(--spacing-md);
    right: 80px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    z-index: 2;
}

/* 左右切换提示 */
.fullscreen-navigation-hint {
    position: absolute;
    bottom: var(--spacing-lg);
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: rgba(255, 255, 255, 0.8);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 2;
    animation: fadeInUp 1s ease 2s both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

.fullscreen-description-content {
    font-size: 1.2rem;
    line-height: 1.8;
    color: #323233;
    font-weight: 300;
    letter-spacing: 0.5px;
    background-color: rgba(255, 255, 255, 0.3);
    z-index: 10000;
}

/* 歌词滚动容器样式 */
.lyrics-scroll-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* 歌词行样式 */
.lyrics-line {
    opacity: 0.6;
    transform: scale(0.9);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    margin: 15px 0;
    line-height: 1.8;
    color: #f5f5f5;
    font-weight: 500;
    text-align: center;
    font-size: 1.1rem;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 1), 0 0 8px rgba(255, 255, 255, 0.3);
    white-space: nowrap;
    max-width: 90%;
    overflow: hidden;
    text-overflow: ellipsis;
    cursor: default;
    user-select: none;
}

/* 当前歌词行高亮效果 */
.lyrics-line.current {
    opacity: 1;
    transform: scale(1.1);
    color: #ffeb3b;
    font-weight: 600;
    font-size: 1.3rem;
    text-shadow: 0 0 20px rgba(255, 235, 59, 0.6), 0 2px 8px rgba(0, 0, 0, 0.8);
    animation: lyricsGlow 2s ease-in-out infinite alternate;
}

/* 歌词发光动画 */
@keyframes lyricsGlow {
    0% {
        text-shadow: 0 0 20px rgba(255, 235, 59, 0.6), 0 2px 8px rgba(0, 0, 0, 0.8);
    }
    100% {
        text-shadow: 0 0 30px rgba(255, 235, 59, 0.8), 0 0 40px rgba(255, 235, 59, 0.4), 0 2px 8px rgba(0, 0, 0, 0.8);
    }
}

/* 移动端歌词优化 */
@media (max-width: 768px) {
    .lyrics-line {
        font-size: 1rem;
        margin: 12px 0;
        max-width: 95%;
    }
    
    .lyrics-line.current {
        font-size: 1.2rem;
    }
    
    .fullscreen-description-content {
        height: 250px;
        padding: 15px;
    }
}

.description-sentence {
    display: inline-block;
    margin-right: 0.5em;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s ease;
}

.fullscreen-close {
    position: absolute;
    top: var(--spacing-lg);
    right: var(--spacing-lg);
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.fullscreen-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.fullscreen-close:active {
    transform: scale(0.95);
}

/* 下一章节按钮样式 */
.fullscreen-next-chapter {
    position: absolute;
    bottom: var(--spacing-lg);
    right: var(--spacing-lg);
    padding: var(--spacing-sm) var(--spacing-md);
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 25px;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.fullscreen-next-chapter:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.fullscreen-next-chapter:active {
    transform: translateY(0);
}

.fullscreen-next-chapter svg {
    width: 16px;
    height: 16px;
}

.fullscreen-next-chapter span {
    white-space: nowrap;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .fullscreen-gallery-content {
        width: 100%;
        height: 100%;
    }
    
    .fullscreen-description {
        padding: var(--spacing-sm) var(--spacing-md);
        max-height: 150px;
        font-size: 0.9rem;
    }
    
    .fullscreen-counter {
        top: var(--spacing-sm);
        right: 60px;
        padding: 6px 12px;
        font-size: 0.8rem;
    }
    
    .fullscreen-navigation-hint {
        bottom: var(--spacing-md);
        font-size: 0.75rem;
        padding: 6px 12px;
    }
    
    .fullscreen-close {
        width: 40px;
        height: 40px;
        top: var(--spacing-sm);
        right: var(--spacing-sm);
    }
    
    .fullscreen-close svg {
        width: 20px;
        height: 20px;
    }
    
    .fullscreen-next-chapter {
        bottom: var(--spacing-sm);
        right: var(--spacing-sm);
        padding: var(--spacing-xs) var(--spacing-sm);
        font-size: 12px;
    }
    
    .fullscreen-next-chapter svg {
        width: 14px;
        height: 14px;
    }
    
    .fullscreen-image-container {
        margin-top: var(--spacing-sm);
    }
}

/* 横屏模式优化 */
@media (max-height: 600px) and (orientation: landscape) {
    .fullscreen-gallery-content {
        flex-direction: row;
        gap: var(--spacing-lg);
    }
    
    .fullscreen-image-container {
        flex: 2;
        height: 100%;
    }
    
    .fullscreen-description {
        flex: 1;
        max-width: none;
        height: 100%;
        min-height: auto;
    }
}